//
//  RightPhotoButton.m
//  WTM
//
//  Created by lxj on 2017/3/10.
//  Copyright © 2017年 lxj. All rights reserved.
//

#import "RightPhotoButton.h"

@implementation RightPhotoButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
 */
- (void)layoutSubviews{

     [super layoutSubviews];
     self.imageEdgeInsets = UIEdgeInsetsMake(0, CGRectGetMaxX(self.titleLabel.frame), 0, -CGRectGetMaxX(self.titleLabel.frame));
     self.titleEdgeInsets = UIEdgeInsetsMake(0, -self.imageView.bounds.size.width, 0, self.imageView.bounds.size.width);
    
 }



@end
